'use strict'

//主页
let home_fn = async(ctx,next)=>{
    ctx.body = `
    <form action="/login" method="POST">
        <label for="">用户名:</label><input type="text" name="username">
        <label for="">密码:</label><input type="password" name="password">
        <input type="submit" value="登录">
    </form>
    `
};

//暴露出去
module.exports={
    '/':['get',home_fn]
}